// 自动生成模板UmsGrowthChangeHistory
package biz

import (
	"time"

	"github.com/go-kratos/kratos/v2/log"
)

// umsGrowthChangeHistory表 结构体  UmsGrowthChangeHistory
type UmsGrowthChangeHistory struct {
	Id          *int       `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`                          //id
	MemberId    *int       `json:"memberId" form:"memberId" gorm:"comment:member_id;column:member_id;size:19;"`           //member_id
	CreateTime  *time.Time `json:"createTime" form:"createTime" gorm:"comment:create_time;column:create_time;"`           //create_time
	ChangeCount *int       `json:"changeCount" form:"changeCount" gorm:"comment:改变的值（正负计数）;column:change_count;size:10;"` //改变的值（正负计数）
	Note        *string    `json:"note" form:"note" gorm:"comment:备注;column:note;size:0;"`                                //备注
	SourceType  *bool      `json:"sourceType" form:"sourceType" gorm:"comment:积分来源[0-购物，1-管理员修改];column:source_type;"`    //积分来源[0-购物，1-管理员修改]
}

// TableName umsGrowthChangeHistory表 UmsGrowthChangeHistory自定义表名 ums_growth_change_history
func (UmsGrowthChangeHistory) TableName() string {
	return "ums_growth_change_history"
}

type UmsGrowthChangeHistoryRepo interface {
}

type UmsGrowthChangeHistoryUsecase struct {
	repo UmsGrowthChangeHistoryRepo
	log  *log.Helper
}

func NewUmsGrowthChangeHistoryUsecase(repo GreeterRepo, logger log.Logger) *UmsGrowthChangeHistoryUsecase {
	return &UmsGrowthChangeHistoryUsecase{repo: repo, log: log.NewHelper(logger)}
}
